package chapter3;

public class LogicalOperatorExample {

	public static void main(String[] args) {
		int x =5;
		int y =6;
		
		System.out.println("value of x:"+Integer.toBinaryString(x));
		System.out.println("value of y:"+Integer.toBinaryString(y));
		int z;
		z= x|y;
		System.out.println("value of z:"+Integer.toBinaryString(z));
		System.out.println(x|y);
		z= x&y;
		System.out.println("value of z:"+Integer.toBinaryString(z));
		System.out.println(x&y);
	}
}
